#pragma once

#ifdef WRITEVIDEO_EXPORTS
#define WRITEVIDEO_API __declspec(dllexport)
#else
#define WRITEVIDEO_API __declspec(dllimport)
#endif

extern "C" WRITEVIDEO_API int fnWriteVideo(unsigned char* data, int bytePerPixel);
extern "C" WRITEVIDEO_API void fnKeepData(short* data, int bytePerPixel);
extern "C" WRITEVIDEO_API int fnInitVideo(char* name, int fourcc, double fps, int w, int h);
extern "C" WRITEVIDEO_API void fnCloseVideo(void);
extern "C" WRITEVIDEO_API void fnTest(char* name);